Part Number Hot Search : 
8160B MAZ4360 TPS2409A MA4ST407 APC12K08 ICS8701 MA4ST407 XG036
Product Description
Full Text Search
 

To Download RA78K0 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  idea-l screen editor introduction user?s manual ms-windows ? ? ? ? based ver. v3.30 printed in japan document no. u10094ej2v0umj1 (2nd edition) date published january 2001 n cp(k) ? 1997
[memo]
* ibm-pc is a trademark of international business machines corporation. * ms-dos and ms-windows are either registered trademarks or trademarks of microsoft corporation in the united states and / or other countries. * i386sx and i486sx are trademarks of intel corporation. in the usa. m8e 00. 4 the information in this document is current as of april, 1997. the information is subject to change without notice. for actual design-in, refer to the latest publications of nec's data sheets or data books, etc., for the most up-to-date specifications of nec semiconductor products. not all products and/or types are available in every country. please check with an nec sales representative for availability and additional information. no part of this document may be copied or reproduced in any form or by any means without prior written consent of nec. nec assumes no responsibility for any errors that may appear in this document. nec does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of nec semiconductor products listed in this document or any other liability arising from the use of such products. no license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec or others. descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software and information in the design of customer's equipment shall be done under the full responsibility of customer. nec assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. while nec endeavours to enhance the quality, reliability and safety of nec semiconductor products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. to minimize risks of damage to property or injury (including death) to persons arising from defects in nec semiconductor products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment, and anti-failure features. nec semiconductor products are classified into the following three quality grades: "standard", "special" and "specific". the "specific" quality grade applies only to semiconductor products developed based on a customer-designated "quality assurance program" for a specific application. the recommended applications of a semiconductor product depend on its quality grade, as indicated below. customers must check the quality grade of each semiconductor product before using it in a particular application. "standard": computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots "special": transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) "specific": aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. the quality grade of nec semiconductor products is "standard" unless otherwise expressly specified in nec's data sheets or data books, etc. if customers wish to use nec semiconductor products in applications not intended by nec, they must contact an nec sales representative in advance to determine nec's willingness to support a given application. (note) (1) "nec" as used in this statement means nec corporation and also includes its majority-owned subsidiaries. (2) "nec semiconductor products" means any semiconductor product developed or manufactured by or for nec (as defined above). ? ? ? ? ? ?
regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.l. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. madrid office madrid, spain tel: 91-504-2787 fax: 91-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore tel: 65-253-8311 fax: 65-250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec do brasil s.a. electron devices division guarulhos-sp brasil tel: 55-11-6462-6810 fax: 55-11-6462-6829 j00.7
- i - contents 1. introduction................................................................................................................ ............... 1 1.1 what is idea-l ? ....................................................................................................................... 1 1.2 operation overview of idea-l ............................................................................................... 2 1.3 before setting up idea-l ....................................................................................................... 3 1.4 setting up idea-l .................................................................................................................... 4 1.4.1 backing up the setup disks ............................................................................................... ......... 4 1.4.2 installation............................................................................................................. ..................... 5 1.5 a look at idea-l operation ................................................................................................. 12 2. tutorial .................................................................................................................... .................. 15 2.1 idea processor functions ................................................................................................... 15 2.1.1 now, let's try it!....................................................................................................... .................. 15 2.1.2 an idea processor?!..................................................................................................... ............ 17 2.1.3 grouping ................................................................................................................. ................. 18 2.1.4 forming a hierarchy...................................................................................................... ........... 23 2.1.5 forming another group and hierarchy ..................................................................................... 2 7 2.1.6 abstracting.............................................................................................................. ................. 30 2.1.7 editing practice ......................................................................................................... ............... 32 2.1.8 saving to a file ......................................................................................................... ................ 33 2.2 library functions .......................................................................................................... ....... 35 2.2.1 creating a function...................................................................................................... ............. 36 2.2.2 registering functions ................................................................................................... ............ 46 2.2.3 using functions .......................................................................................................... .............. 49 2.3 creating a source file..................................................................................................... ..... 68 2.4 using old programs......................................................................................................... .... 73 3. restrictions................................................................................................................ .............. 77
- ii - [memo]
1 1. introduction 1.1 what is idea-l? a major problem in program development for single-chip microcontrollers is the increase in the number of software development steps as the program size increases. one solution is to develop software assets (software libraries). however, developing software assets takes time and effort. in addition, enabling their reuse by other programmers demands more time and effort. thus, a library support tool loaded in the idea processor was developed. it is called idea-l (idea el). idea-l is equipped with functions capable of producing software assets without undue strain on everyday software development and easily applying these assets. idea-l is an editor that runs on ms-windows ? and requires the operating environment to be described later. idea-l is an ordinary editor with an added idea processor and a library tool function. the name idea-l is the combination of idea in idea processor and l for library tool, and embodies the expectation of " ideal software asset management."
2 1.2 operation overview of idea-l figure 1-2-1 is a block diagram of the overall idea-l system. .asm idea processor section detailed design function files file containing each function to be registered .fnc paste .ilb library files file arranging and storing each function library control section listing grouping forming a hierarchy abstracting register browse search idea-l .c .plb .asm .plb .asm source files compiler and assembler previously written source files .idm .idl the data file (.idl) and source files (.idm) in the idea-l format have hierarchical structures. personal library file files collecting only the functions from the library files which are used by source files figure 1-2-1. block diagram of the overall idea-l system idea-l is a software development tool for nec single-chip microcontrollers. it is broadly divided into an idea processor section that has the functions from job management to program editing and the library control section that has the functions from function registration to application.
3 1.3 before setting up idea-l the following environment is required to set up idea-l . required environment hardware recommended environment nec personal computer with an i486sx ? or newer cpu, ibm pc series, or compatible machine minimum 5.6 mbytes of memory (at least 6.5 mbytes for the high resolution mode) minimum 10-mbyte hard disk capacity display with a minimum resolution of 1,024 768 dots mouse minimum execution environment nec personal computer with an i386sx ? or newer cpu, ibm pc series, or compatible machine (function extension processor required in pc-98xl) minimum 3.6 mbytes of memory (at least 4.5 mbytes for the high resolution mode) minimum 5-mbyte hard disk capacity display with a minimum resolution of 640 480 dots mouse software japanese ms-dos ? ver. 3.3d or later ms-windows ? ver. 3.1 or later
4 1.4 setting up idea-l before beginning the setup, check the hardware, software, and idea-l specified in section 1.3, "before setting up idea-l ." 1.4.1 backing up the setup disks before starting the installation, to prepare for unlikely but possible problems, make backup disks of the original floppy disks in the package. after creating the backup disks, use these backup disks in the installation that follows. store the original disks in a safe place. 1. use three floppy disks for backup. 2. start windows 3.1 and start file manager. 3. run the "copy disk (c)..." command in the "disk (d)" menu. 4. when the command is executed, the dialog box for copying floppy disks appears. it displays the "copy source drive (s):" and "copy destination drive (d):" items. 5. specify the copy source and copy destination drives. if the drive differs from the displayed drive name, click the arrow ( ) displayed to the right of the drive name and change the drive name. 6. set system disk 1 of idea-l in the drive specified by "copy source drive (s):". click the ok button. 7. similarly, back up system disks 2 and 3 of idea-l . 8. after making each copy, affix a label to the backup disk to prevent mix-ups.
5 1.4.2 installation the execution example reads idea-l from drive c: and installs the executable files in a:\nectools\bin, the help files in a:\nectools\hlp, the sample programs in a:\nectools\smp, and auxiliary data in a:\nectools\doc. windows is immediately started. 1. start the installation. (1) insert backup disk 1 in the floppy disk drive. (2) select "run" in the "file" menu after selecting the program manager icon. (3) enter the following in the command line input. figure 1-4-1. specifying and running a file name (4) click the ok button. after initializing the setup, the installer starts. figure 1-4-2. initializing the setup
6 figure 1-4-3. welcome to nec setup (5) to continue the installation, select "continue." to exit the installation, select "exit." 2. verify the installation. (1) if the "continue" button was selected, the following message appears. figure 1-4-4. verifying the installation (2) after checking the installation, select "continue." (3) to exit the installation, select "exit."
7 3. specify the install directories. (1) the dialog box for specifying the installation destinations appears. figure 1-4-5. specifying installation destinations (2) after entering the install directories in the text boxes, select "continue." (3) if "back" is selected, the selection dialog for the installation item returns. (4) if "original" is selected, the specified directories indicate the default directories. the root default for the installation destination becomes \nectools of the drive on which windows is installed. if the tools are installed after they have already been installed, that root is used. if the root is edited, the directories below it are linked and changed. (5) if "exit" is selected, the installation exits. (6) read the supplemental explanation since it is registered to an icon after the installation ends. (7) if a specified directory is not valid, the following message appears. figure 1-4-6. message for an invalid path
8 if there is insufficient disk space, an error occurs, and the following message appears. figure 1-4-7. message for insufficient disk space 4. specify the group registered in the program manager. (1) the dialog for specifying the registered group name appears. figure 1-4-8. specifying the registered group name (2) after entering the group name to be registered in the text box, select "continue." if the specified group does not exist, that group is created. if the specified group is already used and registered by the installer, that group is used. (3) if "back" is selected, the dialog for specifying the installation destination returns. (4) if "exit" is selected, the installation exits.
9 5. start to copy the files. (1) if a registered group is specified, the dialog to start copying the files appears. (2) if "continue" is selected, copying the files starts. figure 1-4-9. file copy start if "back" is selected, the dialog for specifying the registered group name returns. if "exit" is selected, the installation exits. 6. copying the files starts. figure 1-4-10. dialog during file copy
10 (1) if "cancel" is selected during a file copy, the following message appears. figure 1-4-11. setup cancel message if "yes" is selected, the installation exits. if "no" is selected, the file copy restarts. 7. exchange the media. (1) when the following message appears, insert backup disk 2 in the floppy disk drive. figure 1-4-12. exchange disk message similarly, when this message appears, insert backup disk 3 in the floppy disk drive. 8. the registered group and icon are created. figure 1-4-13. creating the registered group
11 9. the installation ends. (1) the following message appears. figure 1-4-14. setup completed message (2) if "ok" is selected, the installation ends. 10. when the installer exits (1) the following message is output. figure 1-4-15. setup stopped message (2) if "continue is selected, the dialog where exit was selected returns. (3) if "exit" is selected, the following message appears. figure 1-4-16. setup error termination message (4) if "ok" is selected, the installer exits.
12 1.5 a look at idea-l operation first, let's start idea-l . double click the "idea-l v3.1" icon in the program manager. double click figure 1-5-1. start idea-l as shown in figure 1-5-2, the idea-l startup screen appears after the initialization screen. initialization screen startup screen figure 1-5-2. the idea-l initialization screen and the idea-l startup screen
13 the editing window for editing the source program opens. next, we will end idea-l . click the file menu. click figure 1-5-3. click the file menu since the pull-down menu for file appears, click the "exit idea-l" command. click figure 1-5-4. exit idea-l idea-l exits.
14 [memo]
15 2. tutorial this chapter describes the application of idea-l by using a sample program as an example. times font text in the balloons used in the figures in this chapter indicates a user action. helvetica indicates an explanation. user action explanation press the key. this is displayed. figure 2-1. text characters in the balloons 2.1 idea processor functions 2.1.1 now, let's try it! open the sample program. the sample program is nectools\smp\ideal\example on the drive where idea-l was installed. to open the sample program, click on the "open..." command in the "file" menu. the "open" dialog box appears, so double click "example1.id1." click. double click. figure 2-1-1. open the file menu
16 open example1. example1 specifies the mechanism control section for a cd changer. figure 2-1-2 shows the specification of the mechanism control section. figure 2-1-3 shows the name of each part of the cd changer. pickup magazine disk figure 2-1-3. internal view of the cd changer normally, when writing the specification, the specification for each operating condition is assembled. however, when writing the program, each action is organized and programmed. the reason is the viewpoints of the specification writer and the programmer differ. figure 2-1-2. specification of the mechanism control section of a cd changer
17 2.1.2 an idea processor?! the idea processor is a tool for organizing and abstracting the ideas in a list. the cycle of the thought process apparent to people, such as listing, grouping, forming hierarchies, and abstracting ideas, is supported. program development closely resembles the thought cycle of people in terms of organizing the specifications (idea), grouping, forming hierarchies, and abstracting. abstraction becomes one idea and derives broader abstractions. the contents of an abstracted program become a hierarchical (structured) module that is easy to reuse. if the interface of this module is standardized by the real- time operating system, it can be registered and managed as one independent function or task. based on this idea processor function, idea-l is not simply an editor used in the program creation process in software development, but becomes a tool that can be integrated and used from the upstream specification testing process to the program creation process. in addition, there is a function in this idea processor to make large programs easy to read. idea-l omits the display of the lowest level (program) on the editing screen and displays the comments expressing the algorithm in a hierarchy. furthermore, only the topmost level (abstracted module) can be displayed. generally, it is difficult to grasp the entire process flow on one screen for a long assembler program. however, idea-l can display only the topmost level in order to understand the process flow on one screen, and can display only the required portions in detail for editing. these functions indirectly contribute to better production efficiency in software development. listing grouping forming a hierarchy abstracting detailed design figure 2-1-4. idea processor functions
18 2.1.3 grouping now, we will return to the explanation of example1. although there are various viewpoints about how to organize example1, we will first divide the actions of example1 into the pickup and the magazine. therefore, the lines related to the action of the pickup are collected at one location. line 1 is a line related to the pickup. the next line related to the pickup is line 3. therefore, we will move line 3 between lines 1 and 2. if the mouse cursor is moved to the first character "*" in line 3, the shape of the mouse cursor becomes . press the mouse (hold down the button) at the position where the mouse cursor became . the mouse cursor changes to to point to the line. in this state, drag the mouse between line 1 and line 2 (move the mouse while pressing the button) and drop the mouse at that position (release the button). line 3 is moved between lines 1 and 2. drag to this position. press at this position. the line is moved. figure 2-1-5. moving a line similarly, we will move the lines related to the pickup to one location. there is also a method to visually check and move the contents of each line. however, the method to be used here uses the string search of idea-l to move the lines.
19 first, as shown in figure 2-1-6, use the mouse to specify the character range of "pickup" in line 2. next, click the "find string..." command in the "edit" menu. this will display the "find string" dialog box. insert "pickup" which is the string in the specified range in the "find what" text box. click the "find next" button. the string of "pickup" is searched for in line 3 and later lines. an insertion point appears. click on the left side of the string. the string is highlighted. drag the mouse to the right. click. enter the string in the specified ran g e. click. figure 2-1-6. searching for a string based on a range specification
20 since "pickup" is searched for and is highlighted, move to that line. found the string in the search. move to the line containing pickup. figure 2-1-7. successful string search
21 a search string that was specified once is remembered until the range is specified again. click the mouse at the beginning of the line at the beginning of the search. the insertion point (cursor displayed at the position displaying the character being input) is moved to the beginning of the line. next, click the "find next" button in the "find string [editing]" dialog box. this will search for the string "pickup" after the insertion point. if the string exists, that line is moved to. click. the insertion point appears. the search string is remembered. click. successful search. figure 2-1-8. repeat search for the string if the search is successful, that line is moved to. similarly, move all of the lines related to the remaining pickups. if all of the lines have been moved to, click the "cancel" button in the "find string" dialog box. the "find string" dialog box exits and disappears from the screen.
22 the lines related to the pickup were collected. click. move the pickup line. figure 2-1-9. moving all of the lines containing pickup
23 2.1.4 forming a hierarchy when grouping is completed, next the hierarchy is formed. forming a hierarchy adds a line for naming each group and indents the entire group contents. first, click the mouse at the end of the first line in the group. the insertion point appears at the end of the first line. after pressing the "home clr" key to move the insertion point to the beginning of the line, press the return key. a blank line is inserted before this line. the comment statement naming the group is entered in this blank line. enter "; pickup" and "; magazine" at this position. type in the comment from the keyboard. the insertion point appears. click. the insertion point moves to the beginning of the line. press the "home clr" key. insert a ablank line. press the return key. figure 2-1-10. adding comment lines
24 after adding the line naming the group, all of the grouped contents are indented. first, specify the range of lines related to pickup. press the mouse at the end of the first line and drag it down to the last line in the pickup, and then release the button. after the range is specified, move the mouse cursor to the beginning of the line of the lines specified in the range (any line will do) and press it. since the mouse cursor changes to , drag to the right and drop.
25 drag. press. drag to the right. the beginning of the line changes from "*" to ">." drop. figure 2-1-11. selecting multiple lines and moving one level down
26 the lines in the specified range are indented to the right. the character at the beginning of the line "; pickup" changed from "*" to ">." this symbol means that the contents indented in the lines of "; pickup" are one level down. therefore, the line having a lower level is called the header. the line "; pickup" is the header for all 12 lines (including the blank lines) related to the pickup. similarly, the parts related to the magazine are entered in the level below "; magazine." we will form the magazine hierarchy by only operating the keyboard without using the mouse. press the [shift]+ [ ] keys to position the insertion point at the position shown in figure 2-1-12 and specify the entire range of the magazine. next, press the [shift]+[ctrl]+ [ ? ] keys. the specified range moves to the lower level. the insertion point appears. press the [shift]+ [ ] keys to specify the range. press the [shift]+[ctrl]+ [ ? ]keys. figure 2-1-12. completing the hierarchy
27 2.1.5 forming another group and hierarchy forming the groups and hierarchies is usually not finished in one try. even in example1, if the lines for pickup are examined, detailed classifications are still possible. for example, subdivisions can be made into the following four actions. move the pickup to the disk position. set the pickup on the disk. take the pickup off the disk. return the pickup to the home position. therefore, the lines related to the pickup can be divided into four types. let's regroup the lines related to the same action. order with the lines for moving the pickup to the disk position in one group followed by the group for setting the pickup on the disk. ?a collect the lines for moving the pickup into one group. move the lines and collect into one group. collect the lines for moving the pickup into one g roup. collect the lines for setting the pickup into one group. figure 2-1-13. collect the lines related to moving and setting into one group
28 the problem of whether multiple lines can be moved may be encountered during grouping. in idea-l , multiple, consecutive lines can be moved. figure 2-1-14 is an example of moving multiple lines. first, press the mouse at the beginning of a line in the specification range of multiple, consecutive lines to change the mouse cursor to . drag and drop this at the top. this moves multiple lines. multiple lines are moved. finished drag and drop at this position. figure 2-1-14. moving multiple lines and completing the grouping
29 if the internal grouping for the pickup is finished, the following hierarchy is made in the same way. the headers become ";move," ";set," ";take off," and ";return." form the hierarchy shown in figure 2-1-15. insert ";move". drag to the right and drop. finished detailed grouping and forming the hierarchy figure 2-1-15. completing the hierarchy for the pickup
30 2.1.6 abstracting the headers were formed in the hierarchy. by double clicking the mouse on a header, the lower level is closed (hidden). by double clicking the mouse on the header with a hidden lower level, the hidden lower level opens (appears). this closed state is called an abstraction in the idea processor. double click... the lower level related to moving the pickup is hidden. figure 2-1-16. closing the lower level
31 let's only operate the keyboard and not use the mouse. move the insertion point to the header and press the [ctrl]+[-] keys. the lower level of this header is hidden. press the [ctrl]+[*] keys when the insertion point is placed at a header with a hidden lower level to open the hidden lower level. similarly, hide the lower level for the other headers. move the insertion point. the lower level is hidden. press the [ctrl]+[-] keys. all of the lower levels are hidden. figure 2-1-17. completing the abstraction by displaying only four lines for the pickup as shown in figure 2-1-17, the contents are organized and abstracted.
32 2.1.7 editing practice finally, grouping, forming a hierarchy, and abstracting for the magazine are performed in essentially the same way as for the pickup. try to abstract the entire mechanism control section. storing ejecting the magazine drawer action figure 2-1-18. grouping the magazine figure 2-1-19. forming the magazine hierarchy abstraction completed more abstraction figure 2-1-20. completing the abstraction
33 2.1.8 saving to a file this step saves a file that was abstracted by the idea processor. first, click the "file" menu. when the pull-down menu appears, click the "save" command. click. click. figure 2-1-21. click the file menu
34 if you want to save under another file name, click the "save as..." command in the pull-down menu. when the "save as" dialog box appears, enter the file name in the text box and click the "ok" button. in this case, this example saves "example1" with the file name "ex11". try this and see. click. enter the file name for saving. click. figure 2-1-22. saving with another name this ends section 2.1, "idea processor functions." before starting section 2.2, "library functions," click the "close" command in the "file" menu to exit the window used in section 2.1, "idea processor functions."
35 2.2 library functions typically, when a programmer uses libraries, he begins by reading a thick manual. however, this task does not demand completely remembering the library functions. usually, the programmer only remembers the keywords (sometimes, the entry location). if this task is performed efficiently, the programmer looks up the keyword when needed and can check unclear (or unknown) function data. however in this task, if the programmer uses this function any number of times in software development, he becomes able to use this type of operation without referring to the manual. therefore, the library functions are not necessarily required tools when the functions are included. there are no problems even if functions are directly included in the source file. the library function is a tool that supports the programmer's knowledge. section 2.2, "library functions," describes the creation, registration, and use of functions by using an example (cd changer program using the 78k/0 assembler language).
36 2.2.1 creating a function a function will be created. since functions are being written, a function will be completed as the sample program. the sample program is nectools\smp\ideal\example. click the "open" command in the "file" menu. since the "open" dialog box appears, click the function file (*.fnc) in the "list of files of type" drop-down list. the list of functions in the list box appears, so double click "pick_up.fnc." click. double click. figure 2-2-1. open a function file
37 pick_up.fnc is read. its contents are divided into three windows and opened. argument editing window function editing window description editing window figure 2-2-2. open state of a function file the function is described before writing the function. a library file function is described in an assembler language macro. when the user describes the function (macro) in a program and executes the "save source file..." command, the source file and the personal library file are created. the personal library file is an abstraction of the function body used by the program from the library file. when writing a function, the macro body, arguments, and function description are written. personal library file (.plb) assembler file (.asm) idea-l screen execute the "save source file..." command. figure 2-2-3. function structure
38 the "pick_up" function is a macro that calls the pickup subroutine of some cd changer. the descriptions related to the arguments are still not in this macro. the argument relationships are described to complete the function. the input conditions of the pickup subroutine, "_pick_up," are: input conditions of the "_pick_up" subroutine dummy argument contents action ax ? 1, move the pickup. 2, set the pickup. 3, release the pickup. 4, return the pickup to the home position. cd_number de ? cd number first, as shown in figure 2-2-4, describe "action" in the first dummy argument and "cd_number" in the second dummy argument. input figure 2-2-4. setting the dummy arguments
39 next, the side that accepts the arguments in the macro body is described. describe as shown in figure 2-2-5. input figure 2-2-5. argument description this completes the descriptions of the argument portion in the function editing window. next, the argument editing window is set. while returning again to the description of the function contents, there are four types of actions in this pickup. these actions are passed as action numbers via the ax register. however, when a function is called in a program, in order to make the meaning of the number indicating the action easy to understand when viewed later and due to the increasing possibility of input errors, the action itself is described by a string constant that exactly represents it and not by directly describing a numerical value. although this will be described in detail in section 2.2.3, "using functions," there are menu functions to select the argument candidates of the function in the browser editing window of the library. the argument candidates are set in the argument editing window.
40 an argument is displayed in magenta. figure 2-2-6. click the argument editing window as shown in figure 2-2-7, four types of actions are described in the first argument, action. nothing is described in the second argument, cd_number. input figure 2-2-7. description of the argument candidates when the arguments of the function are set in the browser editing window, they can be selected from these four types. the next section converts a string into a numerical value. the set pseudo-instruction converts a string into a numerical value in the assembler. now we will use this.
41 specify the range of the four lines input in the argument editing window by selecting multiple lines as in section 2.1.4, "forming a hierarchy." after specifying, press the [ctrl]+[c] keys to copy to the clipboard. next, click the function editing window, press the [ctrl]+[v] keys at the position in figure 2-2-8, and paste the contents of the clipboard. after specifying the range, press [ctrl]+[c]. press [ctrl]+[v]. figure 2-2-8. copy the argument candidates and paste (1) paste the copied string. figure 2-2-9. copy the argument candidates and paste (2)
42 as shown in figure 2-2-10, pasting lines by using the set pseudo-instruction is completed. input figure 2-2-10. assigning numerical values to the strings of the argument candidates the function that sets the numerical value by selecting a string was finished. (for example, when "_move" is selected in the first argument, the numerical value of 1 is set to the first dummy argument, "action.")
43 next, the description of this function is written. click in the description editing window. double click the title line to open the lower level. enter "call the pickup action" from the keyboard. double click. the lower level appears. input. figure 2-2-11. enter a comment line in the description editing window of the function file
44 if necessary, the lower level can be opened in other parts and explanations can be written. the entries provided in the example are the standards (defaults) of the description editing window. explanations can be written in other parts. figure 2-2-12. hierarchical structure of the description editing window after writing and editing are finished in the three editing windows (function, argument, description), save by clicking the "save" command in the "file" menu. click figure 2-2-13. saving a function file after saving, click the "close" command in the "file" menu to exit this file. this completes pick_up.fnc.
45 figure 2-2-14 shows the contents of sub_pu.fnc. pick_up.fnc is the macro that sets the arguments and calls the _pick_up subroutine. the macro of the actual subroutine body is described in the sub_pu function file. figure 2-2-14. contents of the sub_pu function file
46 2.2.2 registering functions after a function is created, we will register it in the library. click the "open" command in the "file" menu. click "library file (*.ilb)" in the "list files of type" drop-down list in the "open" dialog box. when the list of the libraries in a list box is displayed, double click the "cd_chg.ilb" library file. click. double click. figure 2-2-15. open a library file open the cd_chg library file. the library editing window appears. as in the idea processor, this window has the functions from grouping to abstracting. double click the pickup part to display the lower level. click at the end of the line "call the function for pickup," then the insertion point appears at the end of the line. click the "function registration..." command in the "library" menu. since the dialog box for function registration appears, click "pick_up.fnc" in the "function file" list box and then click the "ok" button.
47 click the function to be registered... click. double click. click. the lower level appears. figure 2-2-16. registering a function to a library file
48 the specified function is registered. the level opens and the function name is displayed in magenta. the function was registered. figure 2-2-17. completing the function registration similarly, we will register the function of the subroutine for the pickup actions. move the insertion point to the end of the line of the pickup function and register the sub_pu function. after the function is registered in two libraries, click the "save" command in the "file" menu to save. click. register the sub_pu function at this position. figure 2-2-18. finish and save all function registrations after saving the file, click the "close" command in the "file" menu to exit this file.
49 2.2.3 using functions the registration of the function to a library file ended, and the level for using functions was entered. before doing this, however, the library directory must be set. in idea-l , the library directory can be set in two places. each directory has its priority set to the first candidate or the second candidate to be able to use it. for example, when a personal library has priority, the personal library is set to the first candidate. a shared library is set to the second candidate. now, we will set library directories. click the "change library directory..." command in the "library" menu. since the "change library directory" dialog box appears, set a directory of "ch_chg.ilb" as the library directory. click. after selecting the directory of the example.... click. figure 2-2-19. setting the library directory this completes the preparation.
50 open "example2.idl" as a sample program that uses functions. click the "open" command in the "file" menu. double click "example2.idl" in the "open" dialog box. click. double click. figure 2-2-20. open example2
51 figure 2-2-21. contents of example2 the four ways to use a function are (a) use a known function (b) use while examining the arguments (c) search for the target function from the library (d) examine the function data
52 (a) use a known function if the name, contents, and arguments of the function to be used are known, the function is directly described without using a library function. since this is clearly a function, append ";~#" to the end of the function. always describe ";~#" in a function. figure 2-2-22. using a known function
53 (b) use while examining the arguments sometimes the function name is recalled, but the order and contents of the functions are unclear. in this example, the target function is searched for by function name, detailed information about its arguments is verified, and the arguments are completed. in the next example, it is assumed that the function name of "pick_up" is recalled, but its arguments are not known. we will use the function while investigating its arguments. first, enter the function name as shown in figure 2-2-23. next, use the mouse to click the first input character "*" in the input lines to specify the range of lines. input. click. figure 2-2-23. range specification of a function with unclear arguments
54 click the "find function..." command in the "library" menu to display the "find function" dialog box. the function name in the range specified in figure 2-2-23 is entered in the "find what" text box. if you do not know which directory the library file is in, select the "all files" check box as in figure 2-2-24 and search. click. click. enter the function name. click. figure 2-2-24. function search
55 if the function is found, the library browsing window appears and the information related to the target function is displayed. the contents showing the functions registered in the library and the arguments of each function are displayed in the library browsing window. if the displayed contents are insufficient, select the "description..." button shown in figure 2-2-25 to display the description window. click. figure 2-2-25 checking the function contents
56 when setting this example, the contents of the arguments are not known. therefore, we will check the contents of the arguments. double click "argument description" in the description window to display the list of dummy arguments. there is a lower level at the "action" dummy argument in the list. double click and see what happens. in the lower level, there is a list of candidate arguments for the "action" dummy argument. double click. the description of the arguments in the lower level are displayed. double click again. the list of candidate arguments in the lower level is displayed. figure 2-2-26. checking the function contents
57 the contents can be checked in the description window. if the target action is a temporary release operation, select "_release" from the drop-down list for the "action" dummy argument. next, the "cd_number" dummy argument is not in the drop-down list as is the "action" dummy argument and is directly typed into the input text box. click the "cd_number" dummy argument text box and type in the characters "cd_id". figure 2-2-27. setting the function arguments the list of the candidate a r gu m ents is displayed. click. click. enter cd_id.
58 after setting the arguments, this function is pasted in the program. to paste, click the "paste macro" button. the "pick_up" function is pasted into the program as in figure 2-2-28 with the set arguments. click... the function is pasted with the arguments. figure 2-2-28. pasting a function
59 (c) search for the target function in the library sometimes the target use is clear, but the function name is not known. whether this kind of function can be rapidly searched for in the library becomes a necessary condition of an easy-to-use library. in idea-l , in order to understand the entire library or its details, the library browsing window provided. in this example, we will use the library browsing window to paste the function suited to the objective in the program. as a pre-condition, the objective of the example is to search for the subroutine of the "pick_up" function in the library file. as shown in figure 2-2-29, move the insertion point to a position in the function. next, click the "browsing..." command in the "library" menu. click. the insertion point moves to this position. figure 2-2-29. specifying a library file
60 the library browsing window appears. as shown in figure 2-2-30, search for the "sub_pu" function and click. to check the contents of this function, click the "description..." button. double click click "description" to check the contents of this function. click on the target function. double click figure 2-2-30. searching for the target function
61 the description window of the function appears. since the description window is basically the idea processor, double click a line in the lower level to display the detailed contents. function description function body figure 2-2-31. function description since this is the target function, it is pasted. to paste, click the "paste" button of the library browsing window. the target function was pasted in the program. the function is pasted. figure 2-2-32. pasting a function
62 (d) examine the function data if a program written by another person will be used in your program, unknown functions are sometimes described in the program. there are no problems if the contents are easy to understand based on the name and arguments of this function and they match your objective. however, converting the arguments to the format in your program is a major problem. this example assumes this scenario. the last line in the lower level of "main" becomes the header. double click this line. the lines in the function in the lower level were displayed. the discussion continues with the lines of this function as the part used from the other program. double click. an unknown function was encountered. figure 2-2-33. encountering an unknown function
63 now, we will examine the contents of this function. specify this line as the range and click the "find function..." command in the "library" menu. click. specify the range of the function you wish to i figure 2-2-34. examining an unknown function
64 if the function was found, the library browsing window appears. in order to learn about detailed contents, click the "description..." button. since this displays the description window, check the contents of this function. click. magazine function figure 2-2-35. learning about a function
65 the arguments still have not been checked. so we will check the arguments. double click the "explanation of the argument" line to check its contents. double click. the contents of the dummy arguments were determined. figure 2-2-36. examining a function
66 if the contents of the "cd_number" dummy argument is changed from "cd_num" to "cd_id" in the argument window, we will assume it can be used in the program. change the contents of the "cd_number" dummy argument. change the argument. enter "cd_id". figure 2-2-37. change the argument
67 if the change ends, finally click the "paste macro" button. this function is pasted in the program. the function is pasted with changed arguments. click. figure 2-2-38. paste the function with changed arguments
68 2.3 creating a source file a written program is given to the compiler and assembler to create the source file. now we will create a source file. the "example2.idl" window is opened on the current screen. first, click the "save source file..." command in the "file" menu. click. figure 2-3-1. creating a source file
69 the "save source file" dialog box appears. figure 2-3-2. save source file dialog box
70 click the "ok" button to create the source file. the following two files will be created. source program file [exam0001.asm] source program personal library file [exam0001.plb] this file collects the actual macros (functions) used in the source program. it is included in the source file. figure 2-3-3 shows the contents of the two files that are created. figure 2-3-3. created file group finally, click the "close" command in the "file" menu to exit "example2.idl."
71 to change the name of a source program file idea-l automatically sets the source program file name in the "save source file" command. if you wish to create the file with any file name, perform the following procedure. click the file name you wish to change in the source "file name" list box in the "save source file" dialog box. after selecting either the "use c language" or the "use assembly language" radio button for the "source file type," click the "change file name" button. this displays the "change source file name" dialog box so type in the new file name in the source "file name" text box. when finished making the input, click the "ok" button. this changes the file name of the source program. the file name is displayed. enter "cd_che.asm" as the new file name. click. click... click. the file name of the source program is changed. select the language used. figure 2-3-4. changing the file name of a source program
72 errors during compiling or assembly if a compiling or an assembly error occurs, do the following. .idl display screen files (error display) .idm idea-l compiler and assembler .asm .c the file saving the error information is read by idea-l . use the idea-l tag jump function to jump to the error line and correct the error. the display screens during compiling and assembly are saved in files. figure 2-3-5. process flow for error correction
73 2.4 using old programs idea-l can read source files in a conventional text format. now, we will open and abstract a text source program. first, click the "open..." command in the "file" menu. the file "open" dialog box appears, so click the "list files of type" list box and select "text (*.c, *.h, *.asm, *.txt)." click. click here to display the drop- down list. drag the scroll bar button to move the items. select text. figure 2-4-1. selecting a text file
74 double click the file name "example3.asm." double click. figure 2-4-2. open a conventional source program open the "example3.asm" window. example3.asm is a text source program. the file name becomes the header, and the entire program is its lower level. if the comment lines in the program are examined, their structure is "a comment line is added in the line before the program." comment line comment line program line program line structure of comment line + actual program line figure 2-4-3. conventional source program
75 we will use the idea-l function to form a hierarchy. drag the mouse to specify the range. click the mouse at this position. the selected lines become the lower level of the comment line of the immediately preceding line. drag and drop at this position. figure 2-4-4. make a hierarchy of the program lines form hierarchies of all of the lines in the same way. abstract. figure 2-4-5. completed hierarchy of the program lines
76 double click the header line to hide the lower level. double click to abstract. figure 2-4-6. abstract the source program
77 3. restrictions be careful when using because the following restrictions apply in idea-l .  multiple idea-ls cannot be executed simultaneously. ? if multiple idea-l s were started, the idea-l currently being started becomes active.  the same idl file and text file cannot be used simultaneously. ? the file opened last is opened as read only and a message appears.  a text file containing control codes other than new lines (0dh, 0ah) and tab (09h) cannot be opened.  restrictions of each editing window restrictions on the number of lines ? each editing window can have up to 129,024 lines. restrictions on the number of characters in one line ? one line has up to 255 characters. restrictions on the levels in the hierarchy ? the argument window can be created with up to three levels. ? the library editing window can be created with up to five levels. ? otherwise, up to 127 levels can be created. restrictions on the number of types of functions ? up to 1,000 types of functions can be registered in one library file. restrictions on the number of arguments ? up to 32 dummy arguments can be set. restrictions on the number of argument candidates ? up to 32 (lines of) argument candidates for one dummy argument can be set. restrictions on function names and names of the argument candidates ? they have a maximum of 32 characters.  in "save as" and "copy the idea-l file," file names including the dollar sign ($) or tilde ( ~ ) in the extension cannot be used. in the directories for saving files and creating assembler files, do not use file names in which the extension combines the dollar sign ($) and the tilde ( ~ ). idea-l creates temporary files when saving a file or creating an assemble file. however, since the extension of a temporary file combines the dollar sign and the tilde, the file names may clash, and a file may be overwritten or erased. examples) abc.$ ~ $, abc. ~ $ ~ , abc.$$ ~ ...  the "options," "environment settings," and "window" menus can be set to display underlines in the insertion point line. however, the underline disappears when the window switches.  since the file specification format of an include statement created by idea-l is in parentheses "()" when using a macro library, a macro library in the idea-l format cannot be used in 17k, 75x, and v800 systems.
78 [memo]
although nec has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. despite all the care and precautions we've taken, you may encounter problems in the documentation. please complete this form whenever you'd like to report errors or suggest improvements to us. hong kong, philippines, oceania nec electronics hong kong ltd. fax: +852-2886-9022/9044 korea nec electronics hong kong ltd. seoul branch fax: 02-528-4411 taiwan nec electronics taiwan ltd. fax: 02-2719-5951 address north america nec electronics inc. corporate communications dept. fax: 1-800-729-9288 1-408-588-6130 europe nec electronics (europe) gmbh technical documentation dept. fax: +49-211-6503-274 south america nec do brasil s.a. fax: +55-11-6462-6829 asian nations except philippines nec electronics singapore pte. ltd. fax: +65-250-3583 japan nec semiconductor technical hotline fax: 044-435-9608 i would like to report the following error/make the following suggestion: document title: document number: page number: thank you for your kind support. if possible, please fax the referenced page or drawing. excellent good acceptable poor document rating clarity technical accuracy organization cs 00.6 name company from: tel. fax facsimile message


▲Up To Search▲   

 
Price & Availability of RA78K0

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X